﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TeamService.Command
{
    public class MemberManager : System.Windows.Input.ICommand
    {
        public event EventHandler CanExecuteChanged;

        public Boolean CanExecute(Object parameter)
        {
            return parameter is ViewModal.TeamServieceViewModal;
        }

        public void Execute(Object parameter)
        {
            var vm = parameter as ViewModal.TeamServieceViewModal;
            vm.Navigate(0);
        }
    }
}
